//
//  HRZOrderService.h
//  EMarket
//
//  Created by 石头 on 2018/8/28.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZBaseService.h"

@class HRZIssuedOrderModel;
@class HRZOrderPayModel;
@class HRZOrderStatusModel;
@class HRZSearchOrderDetailModel;

@class HRZOrderModel;

@interface HRZOrderService : HRZBaseService

/**
 生产订单

 @param model 参数model
 @param success 成功
 @param failure 失败
 */
+ (void)creatOrderByOrderModel:(HRZIssuedOrderModel *)model
                       success:(void (^)(NSString *suc))success
                       failure:(void (^)(NSString *err))failure;


/**
 支付方式

 @param model 支付方式model
 @param success 成功
 @param failure 失败
 */
+ (void)createOrderPayModel:(HRZOrderPayModel *)model
                    success:(void (^)(NSString *suc))success
                    failure:(void (^)(NSString *err))failure;


/**
 根据订单状态搜索订单

 @param model 订单状态
 @param success 成功
 @param failure 失败
 */
+ (void)searchOrderClassifyByOrderStatus:(HRZOrderStatusModel *)model
                                 success:(void (^)(NSArray <HRZOrderModel *>*array))success
                                 failure:(void (^)(NSString *err))failure;


/**
 搜索订单详情

 @param model 搜索订单model
 @param success 成功
 @param failure 失败
 */
+ (void)searchOrderDetailByModel:(HRZSearchOrderDetailModel *)model
                         success:(void (^)(HRZOrderModel *model))success
                         failure:(void (^)(NSString *err))failure;

@end
